package com.services;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;

import com.util.ToastUtil;

public class TestService extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return new TestBinder();
    }

    public void show(String msg){
        ToastUtil.showToast(msg);
    }

    public class TestBinder extends Binder {
        public TestService getService() {
            return TestService.this;
        }
    }
}
